//
// C++ Interface: mainactivitywidget
//
// Description: 
//
//
// Author: Willi Ballenthin <wilbal1087@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef MAINACTIVITYWIDGET_H
#define MAINACTIVITYWIDGET_H

#include <QWidget>
#include <QtGui>
#include <QtSql>

#include "activity.h"
#include "activityeditwidget.h"
#include "activityviewwidget.h"
#include "activitydbinterface.h"




/**
	@author Willi Ballenthin <wilbal1087@gmail.com>
*/
class MainActivityWidget : public QWidget
{
Q_OBJECT
public:
    MainActivityWidget(QSqlDatabase* db,  QWidget *parent = 0);

    ~MainActivityWidget();

private:
    QHBoxLayout* vb_main;
    QGroupBox*   gb_main;

    QVBoxLayout*             vbl_main;
    ActivityViewWidget*      viewWidget;
    ActivityEditWidget*      editWidget;
    ActivityDbInterface* query;
};

#endif
